package com.guo.core.framework.tomcatStudy;

import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @projectName: 接口梳理
 * @package: com.guo.core.framework.tomcatStudy
 * @className: PrimitiveServlet
 * @author: zhangcan30
 * @description: TODO
 * @date: 2023/6/25 18:02
 * @version: 1.0
 */
public class PrimitiveServlet implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
        PrintWriter writer = response.getWriter();
        writer.println("aaaaaaaaaaa");
        writer.print("bbbbbbbbbbb");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
